![]() |
KillControls |
||||
Header: | Controls.h | Carbon status: | Supported | |
Removes all of the controls from a window that you wish to keep.
void KillControls ( WindowRef theWindow );
A pointer to the window whose controls you wish to remove.
The KillControls function disposes of all controls associated with the specified window. To remove just one control, use DisposeControl. If an embedding hierarchy is present, KillControls disposes of the controls embedded within a control before disposing of the container control.
You should use KillControls when you wish to retain the window but dispose of its controls. The Window Manager functions CloseWindow and DisposeWindow automatically remove all controls associated with the window and release the memory the controls occupy.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)